package com.frank.activedatatest.slice;

import ohos.aafwk.ability.ILifecycle;
import ohos.aafwk.ability.Lifecycle;
import ohos.aafwk.content.Intent;

/**
 * @author : frank
 * @date : 2021/3/17 15:25
 */
public class TestLifeCycle implements ILifecycle {

    Lifecycle lifecycle = new Lifecycle();

    public void register() {
        lifecycle.dispatchLifecycle(Lifecycle.Event.ON_ACTIVE, new Intent());
    }

    @Override
    public Lifecycle getLifecycle() {
        return lifecycle;
    }
}
